<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.List"%>
<%@page import="com.jbarreto.vc.dataobjects.Pelicula"%>
<%@page import="java.util.Iterator"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><bean:message key="pelicula.listado.title"/></title>
</head>
<body BGCOLOR="#FDF5E6">
<center>
<h1><bean:message key="pelicula.listado.title"/></h1>

	<html:messages id="message" message="true">
		<bean:write name="message" />
		<br>
	</html:messages>
	<hr>

    <html:link page="/index.jsp">Back to Home</html:link>
    <html:link page="/mostrarPelicula.do"><bean:message key="new.pelicula"/></html:link>

	<table>
		<tr>
			<td align="center" colspan="4"><font size="4"><bean:message key="datos.pelicula"/></font>
		</tr>
		<tr>
			<th><bean:message key="pelicula.titulo.label"/></th> 
			<th><bean:message key="pelicula.tituloOriginal.label"/></th>
			<th><bean:message key="pelicula.yearProduccion.label"/></th> 
			<th><bean:message key="pelicula.estudio.label"/></th>
		</tr>
		<logic:iterate id="pelicula" name="peliculas" type="com.jbarreto.vc.dataobjects.Pelicula">
			<tr>
				<td><a href="/VideoClub/mostrarPelicula.do?operation=displayPelicula&peliculaID=<bean:write name="pelicula" property="id"/>"><bean:write name="pelicula" property="titulo"/></a></td>
				<td><a href="/VideoClub/mostrarPelicula.do?operation=deletePelicula&peliculaID=<bean:write name="pelicula" property="id"/>">Borrar</a></td>
				<td><bean:write name="pelicula" property="tituloOriginal"/></td>
				<td><bean:write name="pelicula" property="yearProduccion"/></td>
				<td><bean:write name="pelicula" property="estudio"/></td>
			</tr>
		</logic:iterate>
		
		

	</table>
</center>
</body>
</html>